#pragma once
#include "dlg_taskbar.h"

class dlg_taskbar_onlyone :
	public dlg_taskbar
{
public:
	dlg_taskbar_onlyone(void);
	~dlg_taskbar_onlyone(void);
	typedef BOOL (WINAPI *set_layered_window_attr)(HWND,COLORREF,BYTE,DWORD);   
public:
	virtual BOOL OnInitDialog();
	virtual afx_msg void OnTimer(UINT_PTR nIDEvent);
	
public:
	virtual BOOL insert_page(CWnd* child_wnd, CString id);
	virtual BOOL delete_page(int i);
	virtual CWnd* find_page(CString id);
	virtual afx_msg LRESULT on_taskbar_del_page(WPARAM wParam, LPARAM lParam);
	void init_taskdlg(const char* title, int width, int height, int type = aot::common_dlg::etaskdlg_unknown);
	BOOL begin_display();
	
public:
	CWnd *pwnd_;
	set_layered_window_attr pfunc_;
	int trans_value_;
};
